#include "./head/mainwindow.h"
#include "ui_mainwindow.h"

void MainWindow::on_modeButton_clicked()
{
    if (mode == Order_Mode)
    {
        mode = Random_Mode;
        ui->modeButton->setIcon(QIcon(":/Icon/RandomMode.svg"));
    }
    else if (mode == Random_Mode)
    {
        mode = Circle_Mode;
        ui->modeButton->setIcon(QIcon(":/Icon/CircleMode.svg"));
    }
    else if (mode == Circle_Mode)
    {
        mode = Order_Mode;
        ui->modeButton->setIcon(QIcon(":/Icon/OrderMode.svg"));
    }
}
